第13步:在木星上,物体的重量是地球上的234%。真的很重!

  • 将浮点变量的名称更改为 jupiter_weight
  • 将值更改为 earth_weight * 2.34
  • 使用函数内部的 Return Statement 来返回 jupiter_weight

要获得一个数字的234%,我们将小数点向左移动两位得到 2.34。然后将两个数字相乘。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)